package com.wjyf.reducing_bento.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wjyf.reducing_bento.model.dto.LoginUserDto;
import com.wjyf.reducing_bento.model.dto.UserRegisterDto;
import com.wjyf.reducing_bento.model.entity.UserBean;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author wjyf
 * @since 2023-03-14 08:36:33
 */
public interface UserService extends IService<UserBean> {

    UserBean login(LoginUserDto loginUserDto, HttpServletRequest request);

    UserBean getUser(HttpServletRequest request);

    boolean recharge(Double money, Long userId);

    Page<UserBean> getUserPage(Long current, Long pageSize, String key);

    boolean register(UserRegisterDto userRegisterDto);

    UserBean getUserInfo(HttpServletRequest request);
}
